_hideAllOverlays() has only been used in a single place for quite
some time now, so move its code into the caller and save a loop.
https://bugzilla.gnome.org/show_bug.cgi?id=678416
}
},
- _hideAllOverlays: function() {
- for (let i = 0; i < this._windows.length; i++) {
- let clone = this._windows[i];
- let overlay = this._windowOverlays[i];
- if (overlay)
- overlay.hide();
- }
- },
-
_delayedWindowRepositioning: function() {
if (this._windowIsZooming)
return true;
// Position and scale the windows.
for (let i = 0; i < this._windows.length; i++) {
let clone = this._windows[i];
+ let overlay = this._windowOverlays[i];
+
+ if (overlay)
+ overlay.hide();
clone.zoomFromOverview();
});
}
}
-
- this._hideAllOverlays();
},
destroy : function() {